package com.zyf.pattern.proxy.custom;

import com.zyf.pattern.proxy.jdk.JDKMeipo;
import com.zyf.pattern.proxy.jdk.Person;
import com.zyf.pattern.proxy.jdk.ZhangSan;

/**
 * create by yifeng
 */
public class CustomTest {


    public static void main(String[] args) {
    Person instance;
        try {
            instance = (Person) new CustomMeipo().getInstance(new ZhangSan());
//        System.out.println("代理类" + instance.getClass());
        instance.findLove();
        } catch (Exception e ) {
            e.printStackTrace();
        }
    }

}
